package org.TUApp.eTour;

/**
 * Contains all the constants use by the application.
 * @author Hui Liu
 */
public class Constant {

        /**
         * The application package from the Manifest.
         */
        public static final String PKG = "org.TUApp.eTour";
        /**
         * The log tag for all the logs from the app.
         */
        public static final String MAIN_TAG = "TUeTour";

        public static final String PLACE_CHAR_DE = "de ";
        public static final int PLACE_CHAR_DE_LENGTH = PLACE_CHAR_DE.length();

        public static final String PLACE_CHAR_DES = "des ";
        public static final int PLACE_CHAR_DES_LENGTH = PLACE_CHAR_DES.length();

        public static final String PLACE_CHAR_DU = "du ";
        public static final int PLACE_CHAR_DU_LENGTH = PLACE_CHAR_DE.length();
       
        public static final String PLACE_CHAR_L = "l'";
        public static final int PLACE_CHAR_L_LENGTH = PLACE_CHAR_L.length();

        public static final String PLACE_CHAR_IN = "/ ";

        public static final String PLACE_CHAR_IN_DE = PLACE_CHAR_IN + PLACE_CHAR_DE;
        public static final int PLACE_CHAR_IN_DE_LENGTH = PLACE_CHAR_IN_DE.length();

        public static final String PLACE_CHAR_IN_DES = PLACE_CHAR_IN + PLACE_CHAR_DES;
        public static final int PLACE_CHAR_IN_DES_LENGTH = PLACE_CHAR_IN_DES.length();

        public static final String PLACE_CHAR_IN_DU = PLACE_CHAR_IN + PLACE_CHAR_DU;
        public static final int PLACE_CHAR_IN_DU_LENGTH = PLACE_CHAR_IN_DU.length();

        public static final String PLACE_CHAR_PARENTHESE = "(";

        public static final String PLACE_CHAR_PARENTHESE_STATION = PLACE_CHAR_PARENTHESE + "station ";
        public static final int PLACE_CHAR_PARENTHESE_STATION_LENGTH = PLACE_CHAR_PARENTHESE_STATION.length();

        public static final CharSequence HTML_CODE_SPACE = "&nbsp;";
        public static final String HTML_CODE_EACUTE = "&eacute;";
        public static final String HTML_CODE_EACUTE_2 = "&#233;";
        public static final String HTML_CODE_ECIRC = "&ecirc;";
        public static final String HTML_CODE_ECIRC_2 = "&#234;";
        public static final String HTML_CODE_OCIRC = "&#244;";
        public static final String HTML_TABLE_END = "</table>";
        public static final String HTML_TAG = "<html>";
        public static final String HTML_TAG_END = "</html>";
        public static final String NEW_LINE = "\n";
       
        /**
         * The temporary file 1 where the service can store data.
         */
        public static final String FILE1 = "temp1.xhtml";
        /**
         * The temporary file 2 where the service can store data.
         */
        public static final String FILE2 = "temp2.xhtml";
        /**
         * The temporary file 3 where the service can store data.
         */
        public static final String FILE3 = "temp3.xhtml";
       
        /**
         * Search for next bus arriving time.
         */
        public static final String BUS_FEED = "http://webservices.nextbus.com/predictor/simplePrediction.shtml?a=towson&r=1%&d=loop&s=2%";
        public static final String BUS_FEED_PARSER = "Tracked vehicle";
        public static final String NO_BUS = "No current prediction";
        public static final String NEXT_BUS = "predictionNumberForFirstPred";
       
        /**
         * The max number of search results.
         */
        public static final int NB_SEARCH_RESULT = 7;

        /**
         * The number of feet necessary to make 1 meter.
         */
        public static float FEET_PER_M = 3.2808399f;
        /**
         * The number of feet necessary to make 1 mile.
         */
    public static float FEET_PER_MILE = 5280;
    /**
     * The number of meter necessary to make 1 KM.
     */
    public static float METER_PER_KM = 1000f;
    public static boolean DEBUG = true;
}

